package ru.amse.tsyganov.jumleditor.validator;

import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;

public class ProblemsLabelProvider extends LabelProvider
	implements ITableLabelProvider {

	public Image getColumnImage(Object element, int columnIndex) {
		return ((Problem) element).getImage();
	}

	public String getColumnText(Object element, int columnIndex) {
		return ((Problem) element).getDescription();
	}

}
